package com.yx.fx.sys.web.model.update;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

/**
 * @author 杨智杰
 * @since 2021/8/25 10:00
 */
@Data
@Accessors(chain = true)
@ApiModel("修改用户数据模型")
public class UpdateUser {

    @NotNull
    @ApiModelProperty(value = "根据Id修改", required = true)
    private Long id;

    @Length(max = 32)
    @ApiModelProperty(value = "用户名")
    private String userName;

    @Length(max = 32)
    @ApiModelProperty(value = "手机号")
    private String phone;

    @Email
    @ApiModelProperty(value = "邮箱")
    private String email;

    @Length(max = 128)
    @ApiModelProperty(value = "头像")
    private String photo;

    @ApiModelProperty(value = "当前状态(0禁用，1启用)")
    private Integer status;
}
